package ecode

import (
	"github.com/zhufuyi/sponge/pkg/errcode"
)

// tkUserAddress http service level error code
// each resource name corresponds to a unique number (http type), the number range is 1~100, if there is the same number, trigger panic
var (
	tkUserAddressNO       = 79
	tkUserAddressName     = "tkUserAddress"
	tkUserAddressBaseCode = errcode.HCode(tkUserAddressNO)

	ErrCreateTkUserAddress      = errcode.NewError(tkUserAddressBaseCode+1, "failed to create "+tkUserAddressName)
	ErrDeleteByIDTkUserAddress  = errcode.NewError(tkUserAddressBaseCode+2, "failed to delete "+tkUserAddressName)
	ErrDeleteByIDsTkUserAddress = errcode.NewError(tkUserAddressBaseCode+3, "failed to delete by batch ids "+tkUserAddressName)
	ErrUpdateByIDTkUserAddress  = errcode.NewError(tkUserAddressBaseCode+4, "failed to update "+tkUserAddressName)
	ErrGetByIDTkUserAddress     = errcode.NewError(tkUserAddressBaseCode+5, "failed to get "+tkUserAddressName+" details")
	ErrListByIDsTkUserAddress   = errcode.NewError(tkUserAddressBaseCode+6, "failed to list by batch ids "+tkUserAddressName)
	ErrListTkUserAddress        = errcode.NewError(tkUserAddressBaseCode+7, "failed to list of "+tkUserAddressName)
	// error codes are globally unique, adding 1 to the previous error code
)
